package edu.sfsu.cs.orange.googlemap;

import android.app.Activity;
import android.os.Bundle;

import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.maps.model.LatLng;
import com.google.android.gms.maps.model.Marker;
import com.google.android.gms.maps.model.MarkerOptions;
import com.google.android.maps.GeoPoint;
import com.google.android.maps.MapActivity;
import com.google.android.maps.MapController;
import com.google.android.maps.MapView;
import com.google.android.maps.Overlay;
import com.google.android.maps.OverlayItem;
import com.google.android.gms.maps.MapFragment;
import edu.sfsu.cs.orange.ocr.R;


public class GooglemapActivity extends Activity{

	   static final LatLng TutorialsPoint = new LatLng(21 , 57);
	   private GoogleMap googleMap;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.googlemap);
		try { 
	            if (googleMap == null) {
	               googleMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.gMap)).getMap();
	            }
	         googleMap.setMapType(GoogleMap.MAP_TYPE_HYBRID);
	         Marker TP = googleMap.addMarker(new MarkerOptions().
	         position(TutorialsPoint).title("TutorialsPoint"));

	      } catch (Exception e) {
	         e.printStackTrace();
	      }

	   }		
}
